<?php // $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sidebar')); ?>

<?php // $this->endWidget();?>

    <h3>Suche nach: "<?php echo CHtml::encode($term)?>"</h3>

    <?php if (!empty($results)): ?>
    <div id='results'>
        <?php foreach($results as $result): 
    ?>   
            <div class="mydiv">
                <p><?php echo CHtml::link($query->highlightMatches(CHtml::encode($result->user_id)), $this->createUrl('user/update', array('id'=>$result->user_id))); ?>
                <?php // echo CHtml::link($query->highlightMatches(CHtml::encode($result->last_name)), $this->createUrl('user/update', array('id'=>$result->user_id))) ?></p>
                <hr/>
            </div>
        <?php endforeach; ?>
        
    </div>
    <?php else: ?>
        <p class="error">Keine Einträge gefunden</p>
    <?php endif; ?>
